package com.ruoyi.system.service;

import com.ruoyi.system.domain.EmgWarehouse;
import com.ruoyi.system.domain.vo.EmgWarehouseVo;
import com.ruoyi.system.domain.bo.EmgWarehouseBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 物资仓库Service接口
 *
 * @author ruoyi
 * @date 2023-11-10
 */
public interface IEmgWarehouseService {

    /**
     * 查询物资仓库
     */
    EmgWarehouseVo queryById(Long id);

    /**
     * 查询物资仓库列表
     */
    TableDataInfo<EmgWarehouseVo> queryPageList(EmgWarehouseBo bo, PageQuery pageQuery);

    /**
     * 查询物资仓库列表
     */
    List<EmgWarehouseVo> queryList(EmgWarehouseBo bo);

    /**
     * 新增物资仓库
     */
    Boolean insertByBo(EmgWarehouseBo bo);

    /**
     * 修改物资仓库
     */
    Boolean updateByBo(EmgWarehouseBo bo);

    /**
     * 校验并批量删除物资仓库信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
